@import "../../mixins/index.less";

@switch-prefix-cls: ~"@{prefix}-switch";

.@{switch-prefix-cls} {
  
  position: relative;
  &.android{
    width: 200px;
    height:70px;
  }
  &.ios{
    width: 180px;
    height: 100px;
  }

  .input-ios {
    width: 180px;
    height: 100px;
    background-color: #fff;
    border-radius: 50px;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.2), 0 2px 11.5px rgba(0, 0, 0, 0.08),
      -1px 2px 2px 0 rgba(0, 0, 0, 0.1);
  }
  .input-android {
    width: 200px;
    height: 100%;
    background-color: @base-color;
    border-radius: 10px;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.2), 0 2px 11.5px rgba(0, 0, 0, 0.08),
      -1px 2px 2px 0 rgba(0, 0, 0, 0.1);
  }
  .active {
    transition: all 300ms;
  }
  .normal {
    transition: all 300ms;
  }
  .circle-ios {
    position: absolute;
    width: 100px;
    height: 100%;
    top: 0;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.2), 0 2px 11.5px rgba(0, 0, 0, 0.08),
      -1px 2px 2px 0 rgba(0, 0, 0, 0.1);
  }
  .circle-android {
    position: absolute;
    width: 100px;
    height: 100%;
    top: 0;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.2), 0 2px 11.5px rgba(0, 0, 0, 0.08),
      -1px 2px 2px 0 rgba(0, 0, 0, 0.1);
  }
  .right {
    left: 100%;
    transform: translateX(-100%);
    transition: all 300ms;
  }
  .left {
    left: 0;
    transition: all 300ms;
  }
}
